<?php

class Rol extends AppModel {

    public $label = 'Roles';
    public $displayField = 'nombre';
    public $plugin = 'Admin';
    public $hasOne = array('Admin.User');
    public $hasAndBelongsToMany = array('Admin.Permiso', 'Admin.Button');
    public $validate = array(
        'nombre' => array(
            'required' => array(
                'rule' => array('notEmpty'),
                'message' => 'El nombre del rol es requerido'
            )
        )
    );

}